#define ADD_NEW_KEY 0
#define BUILD_PINBLOCK 1
#define RESET_KEY 2

#define ROK 0
#define RERROR -1
//jrd one source
#ifdef __arm    
typedef unsigned char     BYTE;
#endif 

int inAPACS_OWF(unsigned char *D_value, unsigned char *K_value, unsigned char *result);
unsigned char makeOdd(unsigned char oddByte);
int inAPACSclearPINblock(char *track2, char *pin, char *pinblock);
int OnlinePIN(unsigned char *buffer, int keyset, int operation);

extern short getUsrPin(unsigned char *pin);
//jrd one source

#ifdef __arm    
extern void ascii_to_bin(BYTE *dest, BYTE *src, int length);
extern void hex_2_asc(BYTE *outp, BYTE *inp, int length);
#endif 



